package com.simple.business.domain.dto.user;

import com.simple.business.domain.enumeration.ThirdAuthenticationEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@ApiModel
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ResetPwdDTO {
    @NotNull(message = "账号不能为空")
    @ApiModelProperty(value = "待重置账号，所有接口都需传入")
    private String baseAccount;
    @ApiModelProperty(value = "邮箱或者手机，除获取重置密码介质接口外都要传入")
    private String userName;

    @ApiModelProperty("验证码，验证码验证接口传入")
    private String code;
    @ApiModelProperty("验证类型，验证码验证接口传入")
    private ThirdAuthenticationEnum type;

    @ApiModelProperty(value = "密码，重置密码接口传入")
    private String pwd;
    @ApiModelProperty(value = "重置密码标识码，重置密码接口传入")
    private String resetCode;
}
